#!/bin/bash

#==================================================
# impnet
# File ID: 959423fa-5d3d-11df-8ea8-90e6ba3022ac
# Legger en website inn i Cvs/imp-net .
# Syntax: impnet [webnavn] [dato]
#==================================================

impdir=sunny@impnetcvs.sunbase.org:/home/sunny/Cvs/imp-net

if [ "$1" = "" ]; then
	cat <<END

Syntax: impnet webnavn [dato]

END
	exit 1
fi
navn=$1

if [ "$2" != "" ]; then
	# Dato er spesifisert
	dato=$2
else
	# Vi bruker datoen akkurat nå
	dato=$(date -u +"%Y%m%dT%H%M%SZ")
fi

cvs -d $impdir import -d -kb -I \! raw www $1-$dato
